/*
 * Copyright (c) 2014 Strong Group - 版权所有
 * 
 * This software is the confidential and proprietary information of
 * Strong Group. You shall not disclose such confidential information 
 * and shall use it only in accordance with the terms of the license 
 * agreement you entered into with www.cnstrong.cn.
 */
package com.zuorenke.model.constants;

import java.util.HashSet;
import java.util.Set;

/**
 *
 * 描述:
 *
 * @author  WQB
 * @created 2014-4-4 下午2:20:31
 * @since   v1.0.0
 */
public interface SessionCst {

	String NICK = "_nk_";
	
	String TICKET = "ticket";
	
	String _D = "_d";

	String SESSIONID = "jsessionid";
	
	int SESSION_EXPIREDTIME_6MONTH = 6 * 30 * 12 * 60 * 60;//6个月
	
	int SESSION_EXPIREDTIME_1MONTH = 30 * 12 * 60 * 60;//1个月
	
	int EXPIREDTIME_SEVEN_DAYS = 7 * 24 * 60 * 60;//7天
	
	int SESSION_EXPIREDTIME = 12 * 60 * 60;//12小时
	
	int ONLINE_USER_ALIVE = 30 * 60;//30分钟
	
	int AUTHCODE_EXPIREDTIME = 30 * 60;//30分钟
	
	String SESSION_PREFIX = "session.id.";
	
	String SESSION_PREFIX_M = "session.m.id.";
	
	String SESSION_PREFIX_HD = "session.hd.id.";
	
	String SESSION_ATTRIBUTE_LAST_UPDATE_TIME = "lastupdatetime";
	
	String SESSION_ATTRIBUTE_USER_POJO = "user.pojo";
	
	String SESSION_ATTRIBUTE_USER_MENU = "user.menu";
	
	String SESSION_ATTRIBUTE_PRIVILEDGE_RESOURCE = "priviledge.resources";
	
	String SESSION_ATTRIBUTE_PRIVILEDGE_DATA = "priviledge.datas";
	
	String LOCALE = "l_l";
	
	String COOKIE_PHONE_CODE = "l_p_c_";
	
	Set<String> COOKIESSET = new HashSet<String>(){
	private static final long serialVersionUID = 2729731519435619801L;
	{
		add(NICK);
		add(TICKET);
	}};
	
}
